<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="ceph" uri="http://jsp.cephb.fr" %>

<c:if test="${empty disableLeftMenu}">
<c:set var="identified" scope="page" value="false"/>

<div class="leftdiv">
<dl class="deflist4menu">
<dt class="deftitle4menu">Operon</dt>
	<dd class="dd4menu">Operon</dd>
	<dd class="dd4menu"><a href="${pageContext.request.contextPath}/operon">Home</a></dd>
<dt class="deftitle4menu">User</dt>

<c:choose>
<c:when test="${empty sessionScope.operon_user or sessionScope.operon_user.login eq 'anonymous'}">
	<dd class="dd4menu">User: <b>Anonymous</b></dd>
	<dd class="dd4menu"><a href="${pageContext.request.contextPath}/operon?act=login">Sign in</a></dd>
</c:when>
<c:otherwise>
	<c:set var="identified" scope="page" value="true"/>
	<dd class="dd4menu">Connected as <c:url var="url" value="/operon" >
		  		<c:param name="act" value="user-edit" />>
				<c:param name="id" value="${sessionScope.operon_user.id}" /></c:url>
				<a href="<c:out escapeXml="true" value="${url}"/>"><c:out escapeXml="true" value="${sessionScope.operon_user.login}"/></a></dd>
	<dd class="dd4menu"><a href="${pageContext.request.contextPath}/operon?act=logout">Sign out</a></dd>
</c:otherwise>
</c:choose>

<dd class="dd4menu"><a href="${pageContext.request.contextPath}/operon?act=users">List Users</a></dd>

<dt class="deftitle4menu">Projects</dt>
<dd class="dd4menu"><a href="${pageContext.request.contextPath}/operon?act=prjmgr-list">List Projects</a></dd>
<c:if test="${pageScope.identified eq 'true'}">
<dd class="dd4menu"><a href="${pageContext.request.contextPath}/operon?act=prjmgr-new">New Project</a></dd>
</c:if>


<dt class="deftitle4menu">Tools</dt>
<dd class="dd4menu"><a href="${pageContext.request.contextPath}/operon?act=about-snp">SNP</a></dd>
<dd class="dd4menu"><a href="${pageContext.request.contextPath}/operon?act=altera">Altera</a></dd>
<dd class="dd4menu"><a href="${pageContext.request.contextPath}/snp2rdf/SNPToolWebService?wsdl">Web Services</a></dd>
<dd class="dd4menu"><a href="${pageContext.request.contextPath}/das/dsn">DAS Server</a></dd>
<dd class="dd4menu"><a href="${pageContext.request.contextPath}/rest">RDF Queries</a></dd>
</dl>




</div>
</c:if>